package com.flydog.taskManager.repository;

import com.flydog.taskManager.entity.user.RolePermissionRelation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RolePermissionRelationRepository extends JpaRepository<RolePermissionRelation, Long> {
    long deleteByRoleId(Long roleId);

    List<RolePermissionRelation> findByRoleId(Long roleId);

    List<RolePermissionRelation> findByPermissionId(Long permissionId);

}